fix(author): show articles before podcast episodes with section-aware styling#24
Merged
HeyItsGilbert merged 3 commits intoJun 20, 2026
Merged
Conversation
… styling Author pages were dominated by podcast episodes (220+ for James Petty) which appeared before any written articles because they sort by date and are more recent. Podcast episodes were also rendered with article styling (blue icon, "Read Article" button), making interviews titled "with [Guest]" look like unrelated articles about other people. - Sort written articles first, podcast episodes after, using where/append - Render podcast episodes with purple podcast styling (matching list.html) - Show separate article and episode counts in the author summary card
✅ Deploy Preview for powershellorg ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Wrote and ran scripts/update-podcast-authors.py to extract host and guest names from 817 podcast episode files and populate the `authors` frontmatter array, enabling the author taxonomy pages to list episodes by participant. Extraction uses four strategies in priority order: bio section headers, "Guest:" body lines, "Tonight's Guest:" title pattern, and "with Name" title fallback. Also fixes a regex bug where NOT_A_PERSON_RE lacked word boundaries on "Just", "Set", and "Get", causing Justin Grote's episodes to be skipped. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FNNC3yU5uCsjfcts7GGVow
…ages
Old PowerScripting content includes ~259 announcement posts ("Up Next",
"Recording Tonight", etc.) that live in /podcast/ but have no podcast_url.
These were inflating Jonathan Walz's author page from ~327 real episodes
to 586 total items. Filter $podcasts to only pages with podcast_url set.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FNNC3yU5uCsjfcts7GGVow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Author pages (e.g.
/authors/james-petty/) were showing what looked like "unrelated articles" — the page was dominated by podcast episode titles like "The PowerShell Podcast Learning PowerShell in 2026 with Tara" and "The PowerShell Podcast Zero Trust and PowerShell in K12 with Jim Tyler", which look like content about other people, not James Petty.Root cause — two issues in
layouts/taxonomy/author.html:Wrong ordering: The paginator used Hugo's default date-descending sort across all content. James Petty has 220 recent podcast episodes and only 25 written articles. Since episodes are more recent, all 22 pages of results were podcast interviews before any actual articles appeared.
Missing section-aware styling: Podcast episodes were rendered with article styling (blue file icon, "Read Article" button), so there was no visual signal that they were podcast interviews with various guests rather than articles by James Petty.
Fix
where .Pages "Section" "articles"andappendto place written articles before podcast episodes in the paginator.list.htmlpattern already used elsewhere on the site.Before / After
Generated by Claude Code